package com.bookstore.services.impl;

import com.bookstore.bean.User;
import com.bookstore.dao.UserDao;
import com.bookstore.dao.impl.UserDaoImpl;
import com.bookstore.services.UserServices;

public class UserServicesImpl implements UserServices {
    UserDao userDao=new UserDaoImpl();
    @Override
    public User login(User user) {
        return userDao.getUser(user);
    }

    @Override
    public boolean register(User user) {
        return userDao.update(user);
    }
}
